// 服务器IP、端口
const domain = process.env.NODE_ENV === 'development' ? 'http://127.0.0.1:81' : 'https://wuye.nengyoukeji.com';
// const domain = process.env.NODE_ENV === 'development' ? 'https://wuye.nengyoukeji.com' : 'https://wuye.nengyoukeji.com';
const root = process.env.NODE_ENV === 'development' ? '' : '/new_zsj/public';
// const root = process.env.NODE_ENV === 'development' ? '/new_zsj/public' : '/new_zsj/public';
const host = `${domain}${root}`;
const BASE_URL = `${host}/`;
const api = {
  host,
  BASE_URL,
  domain,
  root,
  //微信登录
  connect: `${BASE_URL}third/connect/wechat`,
  //获取微信配置信息
  getconfig: `${BASE_URL}api/jssdk/getconfig`,
  // 上传
  upload: `${BASE_URL}api/Other/imageUpload`,
  // 收藏
  favor: `${BASE_URL}api/favor/toggle`,
  // 获取物业电话
  getmobile: `${BASE_URL}api/search/index/gettel`,
  // 获取对应区域的所有小区
  allResidential: `${BASE_URL}api/uhub/houses/getSearchParams`,
  //添加房屋期数栋数单元号
  getPbua: `${BASE_URL}api/uhub/houses/getPbua`,
  // 获取绑定的所有小区
  quarters: `${BASE_URL}api/uhub/index/residentials`,
  // 获取用户资料
  info: `${BASE_URL}api/uhub/info/show`,
  //用户资料修改
  newinfo: `${BASE_URL}api/uhub/info/edit`,
  // 切换小区
  Switching: `${BASE_URL}api/uhub/index/choose`,
  //获取首页广告
  Advertisement: `${BASE_URL}api/ad/getNewIndex`,
  // 小区公告数据
  exhibition: `${BASE_URL}api/notice/index`,
  // 小区公告详情数据
  exhibitionDetails: `${BASE_URL}api/notice/index/show`,
  // 物业报修新增页面接口
  newincrease: `${BASE_URL}api/repair/index/add`,
  // 物业报修列表页面接口
  increaselist: `${BASE_URL}api/repair/index`,
  // 物业报修详情页面接口
  increasedetails: `${BASE_URL}api/repair/index/show`,
  // 物业报修详情页面催促处理接口
  detailsinporoce: `${BASE_URL}api/repair/index/hurry`,
  //报修评价
  repairjudge: `${BASE_URL}api/repair/index/judge`,
  // 获取我的物业
  personal: `${BASE_URL}api/uhub/index/index`,
  // 添加房屋接口
  addhome: `${BASE_URL}api/uhub/index/addHouse`,
  // 手机验证
  mobile: `${BASE_URL}api/uhub/index/bindMobile`,
  // 我的包裹列表
  parcellist: `${BASE_URL}api/package/index/index`,
  // 我的包裹详情
  parceldetail: `${BASE_URL}api/package/index/show`,
  // 我的包裹费用试算
  Price: `${BASE_URL}api/package/index/calc`,
  // 确认收货接口
  confirm: `${BASE_URL}api/package/index/confirm`,
  //我的包裹取货方式和时间
  parcelmode: `${BASE_URL}api/package/index/pick`,
  // 办事指南列表数据
  businesstext: `${BASE_URL}api/guide/index/index`,
  // 办事指南列表详情数据
  businessDetails: `${BASE_URL}api/guide/index/show`,
  // 办事指南类型
  businesstype: `${BASE_URL}api/guide/type`,
  // 获取验证码
  getCode: `${BASE_URL}api/uhub/index/getCode`,
  // 根据手机验证码进行验证
  phoneCode: `${BASE_URL}api/uhub/index/checkCode`,
  // 已缴费列表
  Paymented: `${BASE_URL}api/money/History`,
  // 待缴费列表
  pending: `${BASE_URL}api/money/index/index`,
  // 车辆费用列表
  parkingPending: `${BASE_URL}api/parking/fee/index`,
  // 意见反馈列表数据
  proposal: `${BASE_URL}api/feedback/index/index`,
  // 意见反馈新增数据
  newadd: `${BASE_URL}api/feedback/index/add`,
  reparipay: `${BASE_URL}api/repair/index/goPay`,//报修支付
  //缴费支付
  moneypay: `${BASE_URL}api/money/Index/goPay`,
  // 一键缴费
  keypayment: `${BASE_URL}api/pay/buy_pay_together`,
  // 订水缴费
  waterpay: `${BASE_URL}api/pay/buy_pay`,
  //获取类型
  paylist: `${BASE_URL}api/money/type/index`,
  // 获取我的房屋信息
  myHouses: `${BASE_URL}api/uhub/index/myHouses`,
  // 自助缴费
  selfpay: `${BASE_URL}api/money/selfpay/add`,
  userpay: `${BASE_URL}api/money/userpay/add`,
  //房屋成员接口
  member: `${BASE_URL}api/uhub/index/member`,
  // 删除成员
  remove: `${BASE_URL}api/uhub/index/remove`,
  // 意见反馈 详情数据
  inporoce: `${BASE_URL}api/feedback/index/show`,
  // 意见反馈 评价
  judge: `${BASE_URL}api/feedback/index/judge`,
  // 我的收藏
  favorList: `${BASE_URL}api/favor/index`,
  //综合搜索
  seach: `${BASE_URL}api/mix_search`,
  //SKU规格
  sku: `${BASE_URL}api/booking/goods/getSku`,
  //SKU服务列表
  listsku: `${BASE_URL}api/booking/goods/list`,
  //SKU订单列表
  ordersku: `${BASE_URL}api/booking/order/list`,
  //SKU详情
  skuDtl: `${BASE_URL}api/booking/goods/detail`,
  //订水类型typy
  fromType: `${BASE_URL}api/booking/order/create`,
  //健康模块获取街道
  getStreet: `${BASE_URL}api/health/area/getStreet`,
  //健康模块表单提交
  postList: `${BASE_URL}api/health/House/add`,
  //验证成员信息
  information: `${BASE_URL}api/uhub/index/checkMember`,
  //社区列表头部社区选择
  communityList: `${BASE_URL}api/community/Index/index`,
  //社区信息公告列表
  NoticeList: `${BASE_URL}api/community/Notice/index`,
  //社区公告列表详情
  NoticeListDetail: `${BASE_URL}api/community/Notice/show`,
  //申请成为志愿者
  addVolunteer: `${BASE_URL}api/community/Volunteer/add`,
  //志愿者详情
  VolunteerDetail: `${BASE_URL}api/community/Volunteer/show`,
  //选择小区
  bycommunity: `${BASE_URL}api/Residential/bycommunity`,
  //添加住户信息
  addHousehold: `${BASE_URL}api/community/Household/add`,
  //添加商户信息
  addStore: `${BASE_URL}api/community/Store/add`,
  //分类列表
  Category: `${BASE_URL}api/community/Category/index`,
  //创建预约
  Appointment: `${BASE_URL}api/community/Appointment/add`,
  //预约
  showAppointment: `${BASE_URL}api/community/Appointment/show`,
  //新增民意
  addFeedback: `${BASE_URL}api/community/Feedback/add`,
  //新增民意列表
  FeedbackList: `${BASE_URL}api/community/Feedback/index`,
  //新增民意详情
  FeedbackDetail: `${BASE_URL}api/community/Feedback/show`,
  //新增民意评价
  FeedbackJudge: `${BASE_URL}api/community/Feedback/judge`,
  //新增民意追问
  FeedbackAgain: `${BASE_URL}api/community/Feedback/again`,
  //切换社区
  choose: `${BASE_URL}api/community/Index/choose`,
  //社区电话
  communityMobile: `${BASE_URL}api/community/Index/current`,
  //社区健康申报
  postDeclare: `${BASE_URL}api/community/health/add`,
  //住户列表
  Household: `${BASE_URL}api/community/Household/index`,
  //商户列表
  Store: `${BASE_URL}api/community/Store/index`,
  //社区轮播
  communityImages: `${BASE_URL}api/community/Images/index`,
  //社区民意调查问卷获取
  opinion: `${BASE_URL}api/community/opinion/show`,
  //社区民意调查新需要的动态创建表单列表
  opinionhtmlList: `${BASE_URL}api/community/opinion/index`,
  //社区民意调查新需要的动态创建表单详情
  opinionDetails: `${BASE_URL}api/community/opinion/show`,
  //社区民意调查新需要的动态创建新增
  addopinionrows: `${BASE_URL}api/community/opinionrows/add`,
  //社区办事指南列表
  serviceList: `${BASE_URL}api/community/Service/index`,
  //社区办事指南详情
  serviceShow: `${BASE_URL}api/community/Service/show`,
  source: {
    areaNumber: `${BASE_URL}areaNumber.js`,
    areaNumberFull: `${BASE_URL}areaNumberFull.js`,
    health_area: `${BASE_URL}health_area.js`,
  }
}

// 返出接口对象
export default api
